class CreateRequirementOrders < ActiveRecord::Migration
  def self.up
    create_table :requirement_orders do |t|
      t.integer :user_id
      t.integer :requirement_id

      t.timestamps
    end
    add_column :requirements, :solver_id, :integer # user who solved this requirement
  end

  def self.down
    drop_table :requirement_orders
    remove_column :requirements, :solver_id
  end
end
